package cn.ljy.uem.model;

import cn.ljy.authority.model.SysUser;
import cn.ljy.common.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;


/**
 * 学校教学章节资源评论
 * 实体类
 * @author 王秋林
 * @date 2022/09/15
 */
@ApiModel(value = "教学章节资源评论")
@Data
@NoArgsConstructor
public class SchoolCourseSectionResourceComment extends BaseModel {

    @ApiModelProperty(value = "教学章节资源评论id（uuid）")
    private String id;

    @ApiModelProperty(value = "回复帖子的Id,如果为空表示该帖子是主贴")
    private String replyId;

    //对应的章节资源id
    @ApiModelProperty(value = "对应章节资源表主键")
    @NotNull(message = "章节资源表Id不能为空")
    private String sectionResourceId;

    //排序 排序（默认0，排序为最大），优先级在“是否推荐”z之下
    @ApiModelProperty(value = "排序 后期可指定置顶评论")
    private Integer sort;

    @ApiModelProperty(value = "对应账户id")
    private Long userId;

    @ApiModelProperty(value = "评论内容")
    private String content;


    //非数据库字段
    private SysUser sysUser;

    private SchoolCourseSectionResource schoolCourseSection;

}
